import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Profile from '@/pages/Profile'
 import EditProfile from '@/pages/EditProfile.vue'
 import MyFollow from '@/pages/MyFollow'
 import Test from '@/pages/Test'
 import MyComments from '@/pages/MyComments'
 import MyCollections from '@/pages/MyCollections'
 import PostDetailHeader from '@/pages/PostDetail'
 import MoreComments from '@/pages/MoreComments'
 import Search from '@/pages/Search'
 import TabManager from '@/pages/TabManager.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'homePage',
      component: Home
    },
    {
      path:'/Login',
      name: 'loginPage',
      component:Login
    },
    {
      path:'/Register',
      name:'registerPage',
      component:Register
    },
    {
      path:'/Profile',
      name:'profile',
      component:Profile
    },
    {
      path:'/EditProfile',
      name:'editProfilePage',
      component:EditProfile
    },
    {
      path:'/myfollow',
      name:'myFollowPage',
      component:MyFollow
    },
    {
      path:'/test',
      name:'testPage',
      component:Test
    },
    {
      path:'/mycomments',
      name:'myCommentsPage',
      component:MyComments
    },
    {
      path:'/mycollections',
      name:'myCollectionsPage',
      component:MyCollections
    },
    {
      path:'/postdetail/:id',
      name:'postDetailPage',
      component:PostDetailHeader
    },
    {
     path:'/morecomments',
     name:'morecommentsPage',
     component:MoreComments
    },
    {
      path: '/search',
      name: 'searchPage',
      component: Search
    },
    {
      path: '/tabManager',
      name: 'tabManagerPage',
      component: TabManager
    }
  ]
})
